package sundun.sharding;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

/**
 * 注意必须在启动类上排除DruidDataSourceAutoConfigure类，否则数据源给到sharding进行管理
 */
@MapperScan({"sundun.sharding.mapper"})
@SpringBootApplication(exclude= {DruidDataSourceAutoConfigure.class})
public class StartApplication {

    public static void main(String[] args) {
        SpringApplication.run(StartApplication.class,args);
    }
}
